stubdom: mmap on /dev/mem support
authorKeir Fraser <keir.fraser@citrix.com>
Wed, 21 Oct 2009 15:08:28 +0000 (16:08 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Wed, 21 Oct 2009 15:08:28 +0000 (16:08 +0100)
commit05ec439680ec0c24900fd1515fee293752f69ee8
tree10b9ad282ea5f2e8810bb7d1db3e508f5a0803e4
parent9cd9340a83eef7e52b0444c5d927eca149a25cc9
stubdom: mmap on /dev/mem support

This patch adds support for mmap on /dev/mem in a stubdom; it is
secure because it only works for memory areas that have been
explicitly allowed by the toolstack (xc_domain_iomem_permission).
Incidentally this is all that is needed to make MSI-X passthrough work
with stubdoms.

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
extras/mini-os/include/lib.h
extras/mini-os/lib/sys.c